﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Entity
{
    class Permisstion
    {
        #region[Public Properties]

        public string Id { get; set; }
        public string GroupNewsId { get; set; }
        public string UserId { get; set; }
        public string Permiss { get; set; }

        #endregion
        #region[PermisstionIDataReader]
        public static Permisstion PermisstionIDataReader(IDataReader dr)
        {
            var obj = new Permisstion
                          {
                              Id = Convert.ToString(dr["Id"]),
                              GroupNewsId = Convert.ToString(dr["GroupImageId"]),
                              UserId = Convert.ToString(dr["UserId"]),
                              Permiss = Convert.ToString(dr["Permiss"])
                          };
            return obj;
        }
        #endregion
    }
}
